<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="UTF-8">
		<title>红酒会 - 智能红酒管家</title>
		<link rel="shortcut icon" type="image/x-icon" href="${ctx}/favicon.ico" />
		<link rel="stylesheet" href="http://libs.baidu.com/bootstrap/2.3.2/css/bootstrap.min.css" />
		<link rel="stylesheet" href="http://libs.baidu.com/bootstrap/2.3.2/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="${ctx}/static/styles/style.css" />
	</head>
<body>
	
	<c:import url="/header"><c:param name="module">talk</c:param></c:import>
	
	<div class="container" id="container">
		<div class="row">
			
			<!-- 内容 -->
			<div class="span8">
				<div>
					<ul class="breadcrumb">
						<li><a href="${ctx}/talk">酒说说</a> <span class="divider">/</span></li>
						<li class="active">品酒社区 <span class="divider">/</span></li>
	  					<li class="active">${tasting.enName}/${tasting.chName}</li>
					</ul>
				</div>
				<div>
					<p><span class="gray">酒名：</span><span class="label label-info">${tasting.enName}/${tasting.chName}</span></p>
					<p><span class="gray">年份：</span><span class="label label-success">${tasting.vintage}年</span></p>
					<p><span class="gray">发布者：</span><a href="${ctx}/user/${tasting.creatorId}" target="_blank">${tasting.creatorName}</a></p>
					<p class="gray">发布于：<fmt:formatDate value="${tasting.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
					<p><span class="gray">综合评价：
						<c:choose>
							<c:when test="${empty tasting.rating}"><img src="${ctx}/static/libs/raty/img/star-0.png"/></c:when>
							<c:otherwise><img src="${ctx}/static/libs/raty/img/star-${tasting.rating}.png"/></c:otherwise>
						</c:choose>
					</span></p>
					<p><span class="gray">评酒文：</span>${tasting.comment}</p>
					
				</div>
			</div>
			
			<!-- 侧栏 -->
			<div class="span4">
				<c:import url="/talk/right"><c:param name="module">talk</c:param></c:import>
			</div>
		</div>
	</div>
	
</body>
</html>